package com.nicolasprof.profgallery.effects {
	import gs.easing.EaseLookup;

	/**
	 * @author Nicolas Prof
	 */
	public class Effect extends Object {

		protected var _ease : Function;

		public function Effect() {		
		}
		public function build(...$layers) : void {
			//TODO add check logic
			//Effect realization
		}
		protected function getConfig() : XML {
			return new XML();
		}

		protected function parseEase() : void {
			var config: XML = getConfig();
			if(XMLList(config.@ease).length() > 0) {
				_ease = EaseLookup.find(String(config.@ease));
			} else{
				throw new Error("Effect doesn't support any ease Function");
			}
		}
	}
}
